home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Math Visin v2.1 disk 1.adf
/
Arexx.WB
/
Perspective
/
ControlPerspective
< prev
next >
Wrap
Text File
|
1992-02-12
|
4KB
|
137 lines
/* ControlWireframe play around with parameters for wireframe images 6-Feb-90 dh
============================================================================ */
ADDRESS "MathVision"
OPTIONS RESULTS
OPTIONS FAILAT 1
NUMERIC DIGITS 14
SIGNAL ON ERROR
Get ZoomX; ScreenZoomX = RESULT /* interrogate MathVision */
Get ZoomY; ScreenZoomY = RESULT
Get ScaleX; ObjectScaleX = RESULT
Get ScaleY; ObjectScaleY = RESULT
Get ScaleZ; ObjectScaleZ = RESULT
Get FocalX; DeltaFocalX = RESULT
Get FocalY; DeltaFocalY = RESULT
Get FocalZ; DeltaFocalZ = RESULT
Get ShiftX; XShift = RESULT
Get ShiftY; YShift = RESULT
Get Xviewpoint; ViewpointX = RESULT
Get Zviewpoint; ViewpointZ = RESULT
Get BoxMagnification; Magnification = RESULT
Get BoxHeight; AspectRatio = RESULT
ClrScr = D2C(12)
StopSign "F"
DO WHILE command ~= "X"
command = MENU()
SELECT
WHEN command ='A' THEN
DO
AspectRatio = GetAns("Aspect Ratio", AspectRatio )
BoxHeight AspectRatio
END
WHEN command ='F' THEN
DO
DeltaFocalX = GetAns("Focal Point Delta X", DeltaFocalX )
DeltaFocalY = GetAns("Focal Point Delta Y", DeltaFocalY )
DeltaFocalZ = GetAns("Focal Point Delta Z", DeltaFocalZ )
FocalX DeltaFocalX
FocalY DeltaFocalY
FocalZ DeltaFocalZ
END
WHEN command ='G' THEN
DO
EditScreenToFront
END
WHEN command ='M' THEN
DO
Magnification = GetAns("Magnification", Magnification )
BoxMagnification Magnification
END
WHEN command ='O' THEN
DO
ObjectScaleX = GetAns( "Object Scale X", ObjectScaleX )
ObjectScaleY = GetAns( "Object Scale Y", ObjectScaleY )
ObjectScaleZ = GetAns( "Object Scale Z", ObjectScaleZ )
ScaleX ObjectScaleX
ScaleY ObjectScaleY
ScaleZ ObjectScaleZ
END
WHEN command ='S' THEN
DO
ScreenZoomX = GetAns("Screen Zoom X", ScreenZoomX )
ScreenZoomY = GetAns("Screen Zoom Y", ScreenZoomY )
ZoomX ScreenZoomX
ZoomY ScreenZoomY
END
WHEN command ='T' THEN
DO
XShift = GetAns("ShiftX", XShift )
YShift = GetAns("ShiftY", YShift )
ShiftX XShift
ShiftY YShift
END
WHEN command ='V' THEN
DO
Get XViewpoint
ViewpointX = RESULT
Get ZViewpoint
ViewpointZ = RESULT
ViewpointX = GetAns("Viewpoint X", ViewpointX )
ViewpointZ = GetAns("Viewpoint Z", ViewpointZ )
XViewpoint ViewpointX
ZViewpoint ViewpointZ
END
OTHERWISE say command;
END /*select*/
END
EXIT
/*================================== MENU ================================= */
MENU:
SAY ClrScr
SAY "A - Aspect Ratio ("AspectRatio")"
SAY "M - Magnification ("Magnification")"
SAY "O - Object Scaling ("ObjectScaleX","ObjectScaleY","ObjectScaleZ")"
SAY "S - Screen Zoom ("ScreenZoomX","ScreenZoomY")"
SAY "F - Focal Point ("DeltaFocalX","DeltaFocalY","DeltaFocalZ")"
SAY "V - Viewpoint ("ViewpointX","ViewpointZ")"
SAY "T - Translation ("XShift","YShift")"
SAY "G - Goto Edit Screen"
SAY "X - Exit"
OPTIONS PROMPT "--------------> "
PULL Command
RETURN command
/* --------------------------------- GetAns -------------------------------- */
/* result = GetAns( prompt, default) */
/* prompt for input, displaying default. Accept one item. If only <return> */
/* was pressed, return the default answer */
GetAns:
parse arg prompter, default
Options Prompt Prompter "(" Default "): "
pull response
if (response = "") THEN response = default
return(response)
/*-------------------------------- ERROR -------------------------------- */
ERROR: /* Error Diagnostic for return codes */
Get Diagnosis RC
SAY RESULT" on line "SIGL
DO i = 1 to 5000
END
EXIT